-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add missing options types #49
add missing options types #49
Conversation
@huang-julien - some missing types, now we export all param types needed as input for tpc |
src/types/type-declarations.ts
Outdated
@@ -111,3 +111,21 @@ export interface GoogleTagManagerApi { | |||
dataLayer: Record<string, any>[]; | |||
google_tag_manager: GoogleTagManager; | |||
} | |||
|
|||
/* Google Maps Embed */ | |||
export interface GoogleMapsEmbedOptions { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
export interface GoogleMapsEmbedOptions { | |
export interface GoogleMapsEmbedQueries { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be suffixed with Queries instead of Options as width
and height
are missing.
GoogleMapsEmbedOptions
should probably be something like
type GoogleMapsEmbedOptions = GoogleMapsEmbedQueries & GoogleMapsEmbedAttributes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I see - yeah, makes sense to differentiate between attributes and params... how about:
GoogleMapsEmbedParams
? in that way it matches "attributes" and "params" keys in the json files: https://github.com/GoogleChromeLabs/third-party-capital/blob/main/src/third-parties/google-maps-embed/data.json#L12
Co-authored-by: Julien Huang <[email protected]>
additional types export for missing params
@kara